<?php
	checkLogin();
?>
<div class="cttitle">
	<a href="?page=messages">Private messages</a>
	<div style="float:right; margin-right:20px;"><a href="?page=messages&new">New message</a></div>
</div>
<div class="content">
<?php getMessages() ?>
</div>

<?php
	if(!isset($_GET['id']))
	{
?>

	<!--<div class="cttitle">
		Sent messages
	</div>
	<div class="content">
	<?php getSentMessages() ?>
	</div>-->

<?php
	}
?>